package be.hikage.sfeir;

import be.hikage.sfeir.annotation.Simple;

import javax.enterprise.inject.Produces;

/**
 * @author Gildas Cuisinier (hikage@hikage.be)
 *         User: hikage
 *         Date: 23/03/11
 */
public class ProducerBean {



    @Produces @Simple
    public Notifier produceSimpleNotifier(){

        System.out.println("Instanciation of SimpleNotifier");

        return new Notifier() {
            public void notify(String message) {
                System.out.println("SimpleNotifier :" + message);
            }
        } ;

    }

}
